package cn.leaf.state;

/**
 *
 * desc: 发货状态
 *
 * @author twinkle-leaf
 * @version v1.0.0
 * slogan: There are no two identical leaves in the world.🍃
 *
 */
public class ShippedState implements OrderState {
    @Override
    public void confirm(Order order) {
        System.out.println("订单已发货，不能执行此操作！");
    }

    @Override
    public void cancel(Order order) {
        System.out.println("订单已发货，不能取消！");
    }

    @Override
    public void ship(Order order) {
        System.out.println(order.getName() + "订单已发货，不能重复发货！");
    }
}